package com.ruoyi.tws.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(contextId = "remoteConfigClient", value = ServiceNameConstants.SYSTEM_SERVICE)
public interface RemoteConfigClient {

    /**
     * 根据配置code获取
     * @param configCode
     * @return
     */
    @PostMapping(value = "/config/client/selectConfigByKey")
    public String selectConfigByKey(@RequestParam("configCode") String configCode);

}
